package com.kasax.android.arch.utils;

import android.app.Activity;
import android.app.Application;
import android.os.Build;
import android.os.Bundle;

import androidx.annotation.RequiresApi;

/**
 * @hide
 */
@RequiresApi(api = Build.VERSION_CODES.ICE_CREAM_SANDWICH)
public class DefActLifecycle implements Application.ActivityLifecycleCallbacks {
    @Override
    public void onActivityCreated(Activity activity, Bundle savedInstanceState) {
//        AppActivityManager.getInstance().addActivity(activity);
        LogUtils.e(activity.getClass().getSimpleName() + " onActivityCreated...");
    }

    @Override
    public void onActivityStarted(Activity activity) {
        LogUtils.e(activity.getClass().getSimpleName() + " onActivityStarted...");
    }

    @Override
    public void onActivityResumed(Activity activity) {
        LogUtils.e(activity.getClass().getSimpleName() + " onActivityResumed...");
    }

    @Override
    public void onActivityPaused(Activity activity) {
        LogUtils.e(activity.getClass().getSimpleName() + " onActivityPaused...");
    }

    @Override
    public void onActivityStopped(Activity activity) {
        LogUtils.e(activity.getClass().getSimpleName() + " onActivityStopped...");
    }

    @Override
    public void onActivitySaveInstanceState(Activity activity, Bundle outState) {
        LogUtils.e(activity.getClass().getSimpleName() + " onActivitySaveInstanceState...");
    }

    @Override
    public void onActivityDestroyed(Activity activity) {
//        AppActivityManager.getInstance().removeActivity(activity);
        LogUtils.e(activity.getClass().getSimpleName() + " onActivityDestroyed...");
    }
}
